package com.topisv.tms.entity;

import java.util.Date;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 店铺信息表
 * @author Administrator
 *
 */
@Entity
@Table(name="shop_source")
public class ShopSource extends IdEntity {
	
	
	
	
	//淘宝字段
	private String topisvKey;
	private String topisvSecret;
	private String topisvRds;
	private String topisvCodeUrl;
	private String topisvCode;
	private String topisvTokenUrl;
	private String topisvServerUrl;
	private String topisvSessionKey;
	private String topisvNick;
	private String topisvUserId;
	private String expiresIn;
	private String r1ExpiresIn;
	private String r2ExpiresIn;
	private String w1ExpiresIn;
	private String w2ExpiresIn;
	private String refreshToken;
	private String reExpiresIn;
	
	private String wareType;//是否自动分配网点
	private String logType;//是否自动分配物流公司
	
	
	
	public String getWareType() {
		return wareType;
	}

	public void setWareType(String wareType) {
		this.wareType = wareType;
	}

	public String getLogType() {
		return logType;
	}

	public void setLogType(String logType) {
		this.logType = logType;
	}

	public String getTopisvKey() {
		return topisvKey;
	}

	public void setTopisvKey(String topisvKey) {
		this.topisvKey = topisvKey;
	}

	public String getTopisvSecret() {
		return topisvSecret;
	}

	public void setTopisvSecret(String topisvSecret) {
		this.topisvSecret = topisvSecret;
	}

	public String getTopisvRds() {
		return topisvRds;
	}

	public void setTopisvRds(String topisvRds) {
		this.topisvRds = topisvRds;
	}

	public String getTopisvCodeUrl() {
		return topisvCodeUrl;
	}

	public void setTopisvCodeUrl(String topisvCodeUrl) {
		this.topisvCodeUrl = topisvCodeUrl;
	}

	public String getTopisvCode() {
		return topisvCode;
	}

	public void setTopisvCode(String topisvCode) {
		this.topisvCode = topisvCode;
	}

	public String getTopisvTokenUrl() {
		return topisvTokenUrl;
	}

	public void setTopisvTokenUrl(String topisvTokenUrl) {
		this.topisvTokenUrl = topisvTokenUrl;
	}

	public String getTopisvServerUrl() {
		return topisvServerUrl;
	}

	public void setTopisvServerUrl(String topisvServerUrl) {
		this.topisvServerUrl = topisvServerUrl;
	}

	public String getTopisvSessionKey() {
		return topisvSessionKey;
	}

	public void setTopisvSessionKey(String topisvSessionKey) {
		this.topisvSessionKey = topisvSessionKey;
	}

	public String getTopisvNick() {
		return topisvNick;
	}

	public void setTopisvNick(String topisvNick) {
		this.topisvNick = topisvNick;
	}

	public String getTopisvUserId() {
		return topisvUserId;
	}

	public void setTopisvUserId(String topisvUserId) {
		this.topisvUserId = topisvUserId;
	}

	public String getExpiresIn() {
		return expiresIn;
	}

	public void setExpiresIn(String expiresIn) {
		this.expiresIn = expiresIn;
	}

	public String getR1ExpiresIn() {
		return r1ExpiresIn;
	}

	public void setR1ExpiresIn(String r1ExpiresIn) {
		this.r1ExpiresIn = r1ExpiresIn;
	}

	public String getR2ExpiresIn() {
		return r2ExpiresIn;
	}

	public void setR2ExpiresIn(String r2ExpiresIn) {
		this.r2ExpiresIn = r2ExpiresIn;
	}

	public String getW1ExpiresIn() {
		return w1ExpiresIn;
	}

	public void setW1ExpiresIn(String w1ExpiresIn) {
		this.w1ExpiresIn = w1ExpiresIn;
	}

	public String getW2ExpiresIn() {
		return w2ExpiresIn;
	}

	public void setW2ExpiresIn(String w2ExpiresIn) {
		this.w2ExpiresIn = w2ExpiresIn;
	}

	public String getRefreshToken() {
		return refreshToken;
	}

	public void setRefreshToken(String refreshToken) {
		this.refreshToken = refreshToken;
	}

	public String getReExpiresIn() {
		return reExpiresIn;
	}

	public void setReExpiresIn(String reExpiresIn) {
		this.reExpiresIn = reExpiresIn;
	}

	private List<String> listExpressCodes;
	@Transient
	public List<String> getListExpressCodes() {
		return listExpressCodes;
	}

	public void setListExpressCodes(List<String> listExpressCodes) {
		this.listExpressCodes = listExpressCodes;
	}

	private String expressCodes;//快递公司编码限制
	
	public String getExpressCodes() {
		return expressCodes;
	}

	public void setExpressCodes(String expressCodes) {
		this.expressCodes = expressCodes;
	}

	private String yhdStoreId;//一号店店铺ID
	private String yhdStoreAddress;//一号店店铺地址
	private String yhdStoreNickName;//卖家称呼
	private String yhdStoreOpenTime;
	private String yhdStoreCategoryCode;//店铺所属的类目编号
	private String yhdAttitudeExactExpPoint;//店铺评分(服务态度)
	private String yhdDescriptExactExpPoint;//店铺评分(描述相符)
	private String yhdLogisticeExactExpPoint;//店铺评分(发货速度)
	private String yhdStoreOperateCategory;//主营类目
	private String yhdStoreMode;//店铺模式（自配送、供应商）
	
	public String getYhdStoreId() {
		return yhdStoreId;
	}

	public void setYhdStoreId(String yhdStoreId) {
		this.yhdStoreId = yhdStoreId;
	}

	public String getYhdStoreAddress() {
		return yhdStoreAddress;
	}

	public void setYhdStoreAddress(String yhdStoreAddress) {
		this.yhdStoreAddress = yhdStoreAddress;
	}

	public String getYhdStoreNickName() {
		return yhdStoreNickName;
	}

	public void setYhdStoreNickName(String yhdStoreNickName) {
		this.yhdStoreNickName = yhdStoreNickName;
	}

	public String getYhdStoreOpenTime() {
		return yhdStoreOpenTime;
	}

	public void setYhdStoreOpenTime(String yhdStoreOpenTime) {
		this.yhdStoreOpenTime = yhdStoreOpenTime;
	}

	public String getYhdStoreCategoryCode() {
		return yhdStoreCategoryCode;
	}

	public void setYhdStoreCategoryCode(String yhdStoreCategoryCode) {
		this.yhdStoreCategoryCode = yhdStoreCategoryCode;
	}

	public String getYhdAttitudeExactExpPoint() {
		return yhdAttitudeExactExpPoint;
	}

	public void setYhdAttitudeExactExpPoint(String yhdAttitudeExactExpPoint) {
		this.yhdAttitudeExactExpPoint = yhdAttitudeExactExpPoint;
	}

	public String getYhdDescriptExactExpPoint() {
		return yhdDescriptExactExpPoint;
	}

	public void setYhdDescriptExactExpPoint(String yhdDescriptExactExpPoint) {
		this.yhdDescriptExactExpPoint = yhdDescriptExactExpPoint;
	}

	public String getYhdLogisticeExactExpPoint() {
		return yhdLogisticeExactExpPoint;
	}

	public void setYhdLogisticeExactExpPoint(String yhdLogisticeExactExpPoint) {
		this.yhdLogisticeExactExpPoint = yhdLogisticeExactExpPoint;
	}

	public String getYhdStoreOperateCategory() {
		return yhdStoreOperateCategory;
	}

	public void setYhdStoreOperateCategory(String yhdStoreOperateCategory) {
		this.yhdStoreOperateCategory = yhdStoreOperateCategory;
	}

	public String getYhdStoreMode() {
		return yhdStoreMode;
	}

	public void setYhdStoreMode(String yhdStoreMode) {
		this.yhdStoreMode = yhdStoreMode;
	}

	private String billNo;//发票 yes no
	
	private String orderType;//限制单件多件订单:single(只允许单件订单流入)，multiple(只允许多件订单流入),-1不限制
	
	private String payAfter;//货到付款：yes(接收货到付款单),no(不接收)
	
	public String getBillNo() {
		return billNo;
	}

	public void setBillNo(String billNo) {
		this.billNo = billNo;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public String getPayAfter() {
		return payAfter;
	}

	public void setPayAfter(String payAfter) {
		this.payAfter = payAfter;
	}

	private String htSendUrl;//禾塘发货接口
	@Column(name="ht_send_url")
	public String getHtSendUrl() {
		return htSendUrl;
	}

	public void setHtSendUrl(String htSendUrl) {
		this.htSendUrl = htSendUrl;
	}

	private String htShopId;
	@Column(name = "ht_shop_id")
	public String getHtShopId() {
		return htShopId;
	}

	public void setHtShopId(String htShopId) {
		this.htShopId = htShopId;
	}

	private String pattern;// 获取订单的方式

	// 荷塘erp认证信息
	private String htKey;
	private String htSecret;
	private String htInf;
	private String htStockSku;
	private String htStockUser;

	@Column(name = "ht_stock_user")
	public String getHtStockUser() {
		return htStockUser;
	}

	public void setHtStockUser(String htStockUser) {
		this.htStockUser = htStockUser;
	}

	@Column(name = "ht_stock_sign")
	public String getHtStockSign() {
		return htStockSign;
	}

	public void setHtStockSign(String htStockSign) {
		this.htStockSign = htStockSign;
	}

	private String htStockSign;

	@Column(name = "ht_stock_sku")
	public String getHtStockSku() {
		return htStockSku;
	}

	public void setHtStockSku(String htStockSku) {
		this.htStockSku = htStockSku;
	}

	@Column(name = "ht_key")
	public String getHtKey() {
		return htKey;
	}

	public void setHtKey(String htKey) {
		this.htKey = htKey;
	}

	@Column(name = "ht_secret")
	public String getHtSecret() {
		return htSecret;
	}

	public void setHtSecret(String htSecret) {
		this.htSecret = htSecret;
	}

	@Column(name = "ht_inf")
	public String getHtInf() {
		return htInf;
	}

	public void setHtInf(String htInf) {
		this.htInf = htInf;
	}

	// P2D认证信息信息
	private String ocrWebservice;
	private String ocrKey;
	private String ocrSecret;

	@Column(name = "ocr_webservice")
	public String getOcrWebservice() {
		return ocrWebservice;
	}

	public void setOcrWebservice(String ocrWebservice) {
		this.ocrWebservice = ocrWebservice;
	}

	@Column(name = "ocr_key")
	public String getOcrKey() {
		return ocrKey;
	}

	public void setOcrKey(String ocrKey) {
		this.ocrKey = ocrKey;
	}

	@Column(name = "ocr_secret")
	public String getOcrSecret() {
		return ocrSecret;
	}

	public void setOcrSecret(String ocrSecret) {
		this.ocrSecret = ocrSecret;
	}

	// 京东商城验证信息
	private String jdKey;//
	private String jdSecret;//
	private String jdBackServerUrl;// 回调url
	private String jdAccessToken;
	private String customerType;// 店铺类型
	private Date jdTokenDate;// 记录时间

	@Column(name = "jd_token_date")
	public Date getJdTokenDate() {
		return jdTokenDate;
	}

	public void setJdTokenDate(Date jdTokenDate) {
		this.jdTokenDate = jdTokenDate;
	}

	@Column(name = "customer_type")
	public String getCustomerType() {
		return customerType;
	}

	public void setCustomerType(String customerType) {
		this.customerType = customerType;
	}

	@Column(name = "jd_key")
	public String getJdKey() {
		return jdKey;
	}

	public void setJdKey(String jdKey) {
		this.jdKey = jdKey;
	}

	@Column(name = "jd_secret")
	public String getJdSecret() {
		return jdSecret;
	}

	public void setJdSecret(String jdSecret) {
		this.jdSecret = jdSecret;
	}

	@Column(name = "jd_back_server_url")
	public String getJdBackServerUrl() {
		return jdBackServerUrl;
	}

	public void setJdBackServerUrl(String jdBackServerUrl) {
		this.jdBackServerUrl = jdBackServerUrl;
	}

	@Column(name = "jd_access_token")
	public String getJdAccessToken() {
		return jdAccessToken;
	}

	public void setJdAccessToken(String jdAccessToken) {
		this.jdAccessToken = jdAccessToken;
	}

	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}
	
	private Customers customers;//客户信息
	
	private OrdenoSource ordenoSource;//订单来源信息
	
	
	@Transient
	public Customers getCustomers() {
		return customers;
	}
	public void setCustomers(Customers customers) {
		this.customers = customers;
	}
	@Transient
	public OrdenoSource getOrdenoSource() {
		return ordenoSource;
	}
	public void setOrdenoSource(OrdenoSource ordenoSource) {
		this.ordenoSource = ordenoSource;
	}
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String shopCode;// varchar(20) NOT NULL COMMENT '编号',
	private String shopName;// varchar(64) NOT NULL COMMENT '名称',  
	private Date createDate;// datetime NOT NULL COMMENT '配置时间',  
	private String guaranteeStatus;	//是否打印保修单
	
	private String status;
	
	public String getGuaranteeStatus() {
		return guaranteeStatus;
	}

	public void setGuaranteeStatus(String guaranteeStatus) {
		this.guaranteeStatus = guaranteeStatus;
	}

	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	@Column(name="shop_code")
	public String getShopCode() {
		return shopCode;
	}
	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}
	@Column(name="shop_name")
	public String getShopName() {
		return shopName;
	}
	public void setShopName(String shopName) {
		this.shopName = shopName;
	}
	@Column(name="create_date")
	public Date getCreateDate() {
		return createDate;
	}
	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}
	@Column(name="ordeno_source_code")
	public String getOrdenoSourceCode() {
		return ordenoSourceCode;
	}
	public void setOrdenoSourceCode(String ordenoSourceCode) {
		this.ordenoSourceCode = ordenoSourceCode;
	}
	@Column(name="customer_code")
	public String getCustomerCode() {
		return customerCode;
	}
	public void setCustomerCode(String customerCode) {
		this.customerCode = customerCode;
	}
	private String  ordenoSourceCode ;//bigint(20) NOT NULL COMMENT '店铺订单来源',    
	private String  customerCode;// varchar(20) NOT NULL COMMENT '商家编码', 
}
